import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/page/home/Home.vue'          //.vue可写可不写
import Location from '@/page/location/Location.vue'
import Detail from '@/page/detail/Detail.vue'
import detailGalary from '@/page/detail/components/detailGalary.vue'
import mapContent from '@/page/detail/components/mapContent.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Home
    },
		{
      path: '/location',
      component: Location
    },
		{
      path: '/detail/:id',
      component: Detail,
			children:[
				{
					path:"galary",
					component:detailGalary
				},
				{
					path:"map",
					component:mapContent
				}
			]
    }
  ]
})
